Skip to content

feat: DAH-3399 use unit status rather than iterating over leases #725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 14, 2025

Conversation

alulabeshue-sfgov
Copy link
Contributor

@alulabeshue-sfgov alulabeshue-sfgov commented May 7, 2025

Ticket

DAH-3399

Description

In the Lease panel of an application only show available units based on unit status rather than leases attached to a unit. Rely on salesforce automation to properly set the status of a unit rather than having to iterate over the leases to determine the unit status.

Review Instructions

Use review instructions on jira ticket

@alulabeshue-sfgov alulabeshue-sfgov temporarily deployed to dahlia-partners-pr-725 May 7, 2025 18:39 Inactive
@alulabeshue-sfgov alulabeshue-sfgov temporarily deployed to dahlia-partners-pr-725 May 9, 2025 20:19 Inactive
@alulabeshue-sfgov alulabeshue-sfgov temporarily deployed to dahlia-partners-pr-725 May 9, 2025 21:28 Inactive
@alulabeshue-sfgov alulabeshue-sfgov changed the title feat: use unit status rather than iterating over leases feat: DAH-3399 use unit status rather than iterating over leases May 9, 2025
@alulabeshue-sfgov alulabeshue-sfgov marked this pull request as ready for review May 9, 2025 21:58
@alulabeshue-sfgov alulabeshue-sfgov requested review from a team, cade-exygy and jimlin-sfgov and removed request for a team May 9, 2025 21:58
Copy link
Contributor

@jimlin-sfgov jimlin-sfgov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -53,7 +53,7 @@ http_interactions:
recorded_at: Mon, 11 Mar 2024 21:47:14 GMT
- request:
method: get
uri: https://<<SALESFORCE_HOST>>/services/data/v<<SALESFORCE_API_VERSION>>/query?q=SELECT%20Id,%20Priority_Type__c,%20AMI_chart_type__c,%20Max_AMI_for_Qualifying_Unit__c,%20Unit_Number__c,%20Unit_Type__c,%20AMI_chart_year__c,%20(SELECT%20Application__c,%20Lease_Status__c,%20Preference_Used_Name__c%20FROM%20Leases__r)%20FROM%20Unit__c%20WHERE%20(Listing__c%20=%20%27a0W0P00000GbyuQUAR%27)
uri: https://<<SALESFORCE_HOST>>/services/data/v<<SALESFORCE_API_VERSION>>/query?q=SELECT%20Id,%20Priority_Type__c,%20AMI_chart_type__c,%20Max_AMI_for_Qualifying_Unit__c,%20Unit_Number__c,%20Unit_Type__c,%20AMI_chart_year__c,%20Status__c,%20(SELECT%20Application__c,%20Lease_Status__c,%20Preference_Used_Name__c%20FROM%20Leases__r)%20FROM%20Unit__c%20WHERE%20(Listing__c%20=%20%27a0W0P00000GbyuQUAR%27)
Copy link
Contributor

@jimlin-sfgov jimlin-sfgov May 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Despite Status__c being in the request, I don't see it in the response body. Did you recreate this VCR cassette by deleting it and then re-running tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I've recreated the cassettes from scratch

@alulabeshue-sfgov alulabeshue-sfgov temporarily deployed to dahlia-partners-pr-725 May 14, 2025 17:26 Inactive
@alulabeshue-sfgov alulabeshue-sfgov merged commit 369d872 into main May 14, 2025
13 checks passed
@alulabeshue-sfgov alulabeshue-sfgov deleted the DAH-3399 branch May 14, 2025 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants